<template>
  <header>
    <h1>
      <img src="@/assets/images/teaLogo.png" alt="" />
    </h1>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-fangdajing"></i>
      <span>搜你喜欢的...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  name: 'Header',
  methods: {
    goSearch() {
      this.$router.push('/search')
    },
  },
}
</script>

<style scoped>
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 1.173333rem;
  background: #b0352f;
}
header h1 {
  width: 2.266666rem;
  height: 0.8rem;
  line-height: 0.8rem;
  vertical-align: middle;
}

header h1 img {
  display: block;
  width: 100%;
  height: 100%;
}

.search {
  display: flex;
  align-items: center;
  width: 6rem;
  height: 0.8rem;
  background-color: #ffffff;
  border-radius: 12px;
}
.search i {
  padding: 0 0.16rem;
  font-size: 0.2rem;
  color: #ccc;
}

.search span {
  color: #ccc;
  font-size: 0.2rem;
}

.kefu i {
  color: #ffffff;
  font-size: 0.7rem;
}
</style>
